package com.xydzxt.www.service;

import com.xydzxt.www.dao.MajorDao;
import com.xydzxt.www.dao.NewsDao;
import com.xydzxt.www.model.Major;
import com.xydzxt.www.model.News;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorService {
    @Autowired
    MajorDao majorDao;

    public List<Major> selectAllMajor(Major major){
        return majorDao.selectAllMajor(major);
    }

    public Major selectById(int id){
        return majorDao.selectById(id);
    }
}

